home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / AVOGADRO / CHEMISTRY / WAVEFUNCTION / !WaveFunc / !Run < prev    next >
Text File  |  1996-07-02  |  996b  |  33 lines

  1. | > !WaveFunc.!Run
  2. |
  3. | Run File for Wavefunction Display
  4. | by Chris Johnson
  5. |
  6. RMEnsure UtilityModule 3.10 Error This application is only suitable for use with RISC OS 3.10 or later versions
  7. |
  8. If "<WaveFunc$Running>" = "yes" Then Error WaveFunc is already running
  9. IconSprites <Obey$Dir>.!Sprites
  10. |
  11. | Find path to file
  12. Set WaveFunc$Dir <Obey$Dir>
  13. |
  14. set temp$flag 1
  15. RMEnsure ABCLibrary 0 set temp$flag 0
  16. RMensure ABCLibrary 4.00 if "<temp$flag>" = "1" Then Error 0 Old ABCLib installed Else RMLoad <Obey$Dir>.ABCLib
  17. RMensure ABCLibrary 4.00 Error You need the ABClibrary ver 4.00 or later installed
  18. |
  19. set temp$flag 1
  20. RMEnsure CJWimpUtil 0 set temp$flag 0
  21. RMEnsure CJWimpUtil 0.18 if "<temp$flag>" = "1" Then Error 0 Old CJWimpUtil module installed Else RMLoad <Obey$Dir>.cjWimpUtil
  22. RMEnsure CJWimpUtil 0.18 Error You need the CJWimpUtil module (0.18 or later) installed
  23. unset temp$flag
  24. |
  25. | Check memory allocation
  26. WimpSlot -min 64K -max 64K
  27. |
  28. |
  29. |
  30. | Now start program
  31. Run <WaveFunc$Dir>.!RunImage
  32.